package com.yanyi.security.auth.feign;

import com.yanyi.common.vo.UserInfoVO;
import com.yanyi.security.auth.configuration.FeignConfiguration;
import com.yanyi.security.auth.util.user.JwtAuthenticationRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author: yukong
 * @date: 2018/7/25 18:53
 * @description:
 */
@FeignClient(value = "ace-admin",configuration = FeignConfiguration.class)
public interface IUserService {
    @RequestMapping(value = "/api/user/validate", method = RequestMethod.POST)
    public UserInfoVO validate(@RequestBody JwtAuthenticationRequest authenticationRequest);
}